package com.solvePlat.controller;

import com.solvePlat.entity.CommentGiveUpInfo;
import com.solvePlat.entity.base.BaseResponse;
import com.solvePlat.service.Impl.CommentGiveUpInfoServiceImpl;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/commentGiveUpInfo")
public class CommentGiveUpInfoController {

    @Resource
    private CommentGiveUpInfoServiceImpl commentGiveUpInfoService;

    @PostMapping("/addCommentGiveUpInfo")
    public BaseResponse addCommentGiveUpInfo(@RequestBody  CommentGiveUpInfo commentGiveUpInfo){
        commentGiveUpInfoService.addCommentGiveUpInfo(commentGiveUpInfo);
        return new BaseResponse(true,"保存成功","");
    }
}
